<?php

	function __autoload($class_name)
	{

		require_once "../../classes/" . $class_name . ".php";
	}
	


   if($_POST['MaPB']!=""){
    $bs = new nguoidungbs();
	$bs->TimPhongBan = $_POST['MaPB'];
	
	$ts = new thamso();
	$ds = $bs->LayDanhSach();
	$manguoidung = $ts->autonumber($ds,"MaNguoiDung",$_POST['MaPB'],9);
	echo "<input readonly='readonly' placeholder ='' tabindex='1' type='text' name='MaNguoiDung' class='txt' size='54' value = '".$manguoidung."'/>";
   }
   ?>	